package com.dearbinge.data.service.impl.userRole;

import com.dearbinge.data.api.userRole.UserRoleService;
import com.dearbinge.data.dao.userRole.UserRoleMapper;
import com.dearbinge.data.pojo.user.User;
import com.dearbinge.data.pojo.userRole.UserRole;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service("userRoleService")
public class UserRoleServicelmpl implements UserRoleService {

    @Autowired
    UserRoleMapper userRoleMapper;

    @Override
    public Integer insert (User user) {
        Integer code = userRoleMapper.insert(user);
        return code;
    }


    @Override
    public List<Map> getUserRoleName (String userRoleType) {
        List<Map> list = userRoleMapper.getUserRoleName(userRoleType);
        return list;
    }


}
